<template>
  <div class="module-container">
    <h2>员工资料管理</h2>
    <div class="module-content">
      <p>在此模块中，您可以管理员工的基本信息、角色信息和权限信息。</p>
      <div class="features">
        <div class="feature-card" @click="$emit('navigate', 'staff', 'info')">
          <h3>员工信息</h3>
          <p>管理员工基本信息，包括姓名、部门、职位等</p>
        </div>
        <div class="feature-card" @click="$emit('navigate', 'staff', 'role')">
          <h3>角色信息</h3>
          <p>管理员工角色及角色分配</p>
        </div>
        <div class="feature-card" @click="$emit('navigate', 'staff', 'permission')">
          <h3>权限信息</h3>
          <p>管理权限设置及权限分配</p>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'UserManagement',
  emits: ['navigate']
}
</script>

<style scoped>
.module-container {
  padding: 0;
}

.module-content {
  margin: 10px;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.feature-card {
  background: #f5f5f5;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  cursor: pointer;
}

.feature-card:hover {
  background: #e9ecef;
}

.feature-card h3 {
  margin-top: 0;
  color: #667eea;
}
</style>